package zuoye04;
import java.util.ArrayList;
import java.util.Arrays;
public class PersonTest {

    public static void main(String[] args) {
        ArrayList<Person> people = new ArrayList<>();
        people.add(new Person("茶雄辉",1,   19));
        people.add(new Person("田得光", 2,18));
        for (Person person : people){
            System.out.println("name="+person.getName()+"\t"+"id="+ person.getId()+"\t"+"age = "+person.getAge());

        }

    }
}
